<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{$user_show.name}-萌星-{$C.webtitle}</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/index.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/banner.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/Adaptive.js"></script>
</head>

<body>

<include file="Public:header"/>

<div class="container" style="margin-top:0.4rem;">
	<div class="mx_list" >
		<p><img class="head_img" src="{$user_show.touxiang}" alt="{$user_show.name}"></p>
		<h2 class="title js_title">{$user_show.name} 小萌星</h2>
		<p class="desc">人气：<span class="fensinum">{$user_show.fensinum}</span></p>
		<p class="desc">体 重：{$user_show_info.tizhong}kg</p>
		<p class="desc">身 高：{$user_show_info.shengao}cm</p>
		<p class="desc">生 日：{$user_show_info.year}年{$user_show_info.month}月{$user_show_info.day}日</p>
		<p class="desc">特长：{$user_show_info.xingqu}</p>
		<p class="desc"> {$user_show_info.jianjie} </p>
    </div>
    <div class="mx_list" >
		<volist name="user_show_videos" id="user_show_videos">
			<h2 class="title js_title">{$user_show_videos.name}</h2>
			<a href="{:U('Index/videos_show',array(nid=>$user_show_videos[id]))}" ><img src="{$user_show_videos.img}" style="width:100%;"  /></a>
		</volist>
        <div class="mx_btn" >
			<div class="wx_btn">
				<php>
				if($user_fensi['id']){
				</php>
					<a class="wx_dz">已成为粉丝</a>
				<php>
				}else{
				</php>
					<a class="wx_dz chengfensi" href="javascript:;" id="tofensi">成为粉丝</a>
				<php>
				}
				</php>
				<php>
				if(!empty($_COOKIE['id'])){
				</php>
					<a href="{:U('User/baoming')}" class="wx_dz">我也要参加</a>
				<php>
				}else{
				</php>
					<a href="javascript:;" onClick="woyebaoming()" class="wx_dz">我也要参加</a>
					<script type="text/javascript">
					function woyebaoming(){
						$.post("{:U('User/getlogzt')}",{},function(msg){
							if(msg==1){
								location.href="./index.php?a=baoming&m=user";
							}else{
								alert("请先登录！");
								location.href="./index.php?a=login&m=user";
							}
						});
					}
					</script>
				<php>
				}
				</php>
			</div>
			<input type="hidden" value="{$user_show.id}" id="tuid" />
			<script type="text/javascript">
			$(function(){
				var tuid=$("#tuid").val();
				$("#tofensi").click(function(){
					$.post("{:U('User/tofensi')}",{tuid:tuid},function(msg){
						if(msg>=1){
							
							var fensinum=Number($(".fensinum").text());
							fensinum+=1;
							$(".fensinum").text(fensinum);
							$(".chengfensi").text("已成为粉丝");
						}else{
							if(msg==-1){
								alert("请先登录");
							}else if(msg==-2){
								alert("已成为粉丝");
							}
						}
					});
				});
			})
			</script>
			<div style="height: 1.8rem"></div>
		</div>
	</div>
</div>

<include file="Public:bottom"/>    

</body>
</html>
